@echo off
setlocal enabledelayedexpansion
set /a index=0
for %%i in (*.rmvb) do (
    set /a index+=1
    echo !index! %%i
    echo ffmpeg -i %%i -vn -acodec libmp3lame 天道!index!.mp3
    ffmpeg -ss 22 -i "%%i" -vn -acodec libmp3lame 天道!index!.mp3
)
endlocal